// export default {
//     path: "/",
//     component: () => import("../layout/index.vue"),
//     children: []
// }

let routes = [
        
    {
        // 欢迎页面
        path: 'welcome',
        component:()=>import("../pages/home/welcome/index.vue"),
        meta:{
            key:"glsy",
            title:"管理首页",
            icon:"icon-yingyongguanli",
        }
    },
    {
        path:"menus",
        component:()=>import("../pages/home/menus/index.vue"),
        meta:{
            key:"menus",
            title:"菜单管理",
            icon:"icon-caidan",
        }
    },
    {   
        // 管理员首页
        path:"stu",
        component:()=>import("../pages/home/stu/index.vue"),
        meta:{
            key:"xygl",
            title:"学生管理",
            icon:"icon-XX_058",
        },
        redirect:'/stu/product',
        children:[
            {   
                // 学生项目首页
                path:"product",
                component:()=>import("../pages/home/stu/product/index.vue"),
                meta:{
                    key:"xyxmgl",
                    title:"学生项目管理",
                    icon:"icon-xiangmu",
                }
            },
            {
                // 学生个人信息
                path:'profile',
                component:()=>import("../pages/home/stu/profile/index.vue"),
                meta:{
                    key:"xyzl",
                    title:"学生资料",
                    icon:"icon-ziliaoku"
                }
            },
            {
                // 学生宿舍信息
                path:"dormitory",
                component:()=>import("../pages/home/stu/dormitory/index.vue"),
                meta:{
                    key:"xysh",
                    title:"学生宿舍",
                    icon:"icon-sushe"
                }
            }
        ]
    },
    {
        // 主页
        path:"mine",
        component:()=>import("../pages/home/mine/index.vue"),
        meta:{
            key:"wdzx",
            title:"我的中心",
            icon:"icon-biaoqiankuozhan_wode-145",
        }
    },
    {
        // 统计数据页
        path:"statistics",
        component:()=>import("../pages/home/statistics/index.vue"),
        meta:{
            key:"sjtj",
            title:"数据统计",
            icon:"icon-shujutongji",
        }
    },
    {
        // 考勤管理页
        path:"attendance",
        component:()=>import("../pages/home/attendance/index.vue"),
        meta:{
            key:"kxgl",
            title:"考勤管理",
            icon:"icon-kaoqinguanli",
        }
    },
    {
        path:"users",
        component:()=>import("../pages/home/users/index.vue"),
        meta:{
            key:"yhgl",
            title:"用户管理",
            icon:"icon-guanliyuan",
        }
    },
    {
        path:'permission',
        component:()=>import('../pages/home/permission/index.vue'),
        meta:{
            key:'permission',
            title:'权限管理',
            icon:'icon-quanxianguanli'
        },
        children:[
            {
                path:'role',
                component:()=>import('../pages/home/permission/role/index.vue'),
                meta:{
                    key:'role',
                    title:'角色管理',
                    icon:'icon-yonghu'
                }
            }
        ]
    },
]

export default routes